# -*- coding = utf-8 -*-
# @Time : 2021/11/3 15:01
# @Author : 龙王赘婿_彪少
# @File : pandas01.py
# @Software: PyCharm

import pandas as pd

class PAND:
    def __init__(self):
        print("---------begin----------")
        self.name = "liuzhibiao"
        self.data1 = {}
        self.my_var = {}
        self.a = [5, 3, 9, 14, 24, 3, 48]
        self.var2 = {}

    def __del__(self):
        print("----------end-----------")

    def say(self):
        print("my name is : " + self.name)

    def fun1(self):
        print(pd.__version__)

    def fun2(self):
        self.data1 = {
            "name": ["liuhao", "xiaowei", "wenling"],
            "age": [12, 21, 54]
        }
        self.my_var = pd.DataFrame(self.data1)
        print(self.my_var)

    def fun3(self):
        self.var2 = pd.Series(self.a)
        print(self.var2)


if __name__ == "__main__":
    a1 = PAND()
    # a1.say()
    # a1.fun1()
    # a1.fun2()
    a1.fun3()
